Skip to content

Conversation

erikhfj
Copy link
Member

@erikhfj erikhfj commented Nov 20, 2026

Closes #95

What was done

  • Rendered 8 lightweight placeholder skeleton cards inside .album-grid.album-grid--loading (aria-hidden="true") while ResultsLayout is loading (client/src/components/ResultsLayout.tsx), preventing the results grid from collapsing and jumping during initial browse, search, and filter transitions.
  • Styled the skeleton cards with plain CSS (client/src/components/ResultsLayout.css) matching the album card cover/info proportions and container query, with a subtle pulse animation disabled under @media (prefers-reduced-motion: reduce).
  • Preserved the existing role="status" loading announcements and aria-busy state on <section className="results">.
  • Added a loading-skeleton test in client/src/App.test.tsx and logged the entry in docs/AI-USAGE.md.

What was tested

  • pnpm format:check && pnpm lint && pnpm typecheck && pnpm test && pnpm build — all passed.
    • Client: 20 test files / 204 tests passed (including new skeleton-grid loading test and full axe/a11y suite).
    • Largest client JS chunk: 386.21 kB (under 512 kB budget).

@erikhfj erikhfj requested a review from a team as a code owner November 20, 2026 20:18
robertky
robertky previously approved these changes Nov 20, 2026
Copy link
Member

@robertky robertky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. The loading skeletons keep the album grid from collapsing during loading while remaining hidden from assistive technology; the existing loading status and aria-busy behavior are preserved. The styling respects reduced-motion preferences, and the added test verifies the skeletons are replaced by results. CI passes.

robertky
robertky previously approved these changes Nov 20, 2026
Copy link
Member

@robertky robertky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Loading now keeps the results grid in place with eight aria-hidden skeleton cards, while the existing loading status and aria-busy state remain available to assistive technology. The pulse animation respects prefers-reduced-motion, and the new test checks loading semantics and replacement by results. Current CI checks pass.

Copy link
Member

@robertky robertky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. The loading skeletons preserve the album grid while remaining hidden from assistive technology. The existing loading announcement and aria-busy behavior are preserved, and the animation respects reduced-motion preferences. The added test checks that the skeletons are replaced by results. CI passes.

@robertky robertky merged commit b6ce484 into main Nov 22, 2026
3 checks passed
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show loading skeleton cards instead of collapsing the album grid
2 participants